<?php
header("Content-Type: text/html; charset=utf-8",true);

include_once("../../includes/cls.config.php");
include_once("cls.base.php");

class colaborador extends base
{
	public $id;
	public $nome;
	public $email;
	public $biografia;
	public $situacao;
	public $_sTabela;
	public $_db;
	
	public function __construct()
	{
		$this->_sTabela = "colaborador";
		$this->_db = new mysql();
	}
	
	public function situacao( $item, $acao )
	{
		if($acao == "ativar")
		{
			$sql = "UPDATE colaborador SET situacao = 1 WHERE id = '" . $item . "'";
			return $this->_db->qry( $sql );
		}
		else
		{
			$sql = "UPDATE colaborador SET situacao = 0 WHERE id = '" . $item . "'";
			return $this->_db->qry( $sql );
		}
	}
}
?>